# -*- coding: utf-8 -*-#

# -------------------------------------------------------------------------------
# Name:         init_yingjiesheng_page_list_link
# Description:  初始化应届生列表页链接
# Author:       zhuchunxu
# Date:         2020/11/6
# -------------------------------------------------------------------------------


from spider_source.utils.redis_utils import RedisUtils


def init_page_list_link():
    url = "http://www.yingjiesheng.com/sichuanjob/list_{}.html"
    utils = RedisUtils()
    for i in range(1, 201):
        link = url.format(i)
        utils.conn.lpush("yingjieshengsichuan:page_list_link", link)


if __name__ == "__main__":
    print("开始初始化。。。")
    init_page_list_link()
    print("执行完毕")
